package com.yff.activity.controller;

import com.yff.activity.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestUserController
{
    @Autowired
    private ITestService iTestService;

    @GetMapping("/user/info")
    public Object info()
    {
        return "{\"username\":\"admin\",\"password\":\"admin123\"}";
    }

    @GetMapping("/user/test/{username}")
    public String test(@PathVariable("username") String username)
    {
        return iTestService.testRpc(username);
    }
}
